
const path = require("path");
function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports = {
  // publicPath:"https://pc.yuwann.com/orangecatpc100",
  //  process.env.NODE_ENV === "production" ? "https://pc.yuwann.com/orangecatpc100": "/",
  publicPath: '/',
  outputDir: "dist",

  lintOnSave: true,

  // indexPath: "index.html",

  runtimeCompiler: true, //关键点在这

  // 调整内部的 webpack 配置。

  // 查阅 https://github.com/vuejs/vue-doc-zh-cn/vue-cli/webpack.md

  chainWebpack: (config) => {
    config.resolve.alias.set("@", resolve("src"));
  },

  // configureWebpack: () => {},

  // 配置 webpack-dev-server 行为。

  devServer: {
    //反向代理--开始
    // historyApiFallback: true,
    // noInfo: true,
    // proxy: {
    //   '/api': {
    //     //是否允许跨域
    //      changeOrigin: true,
    //      target: 'https://fishnovelapptest.yuwann.com',
    //      pathRewrite:{
    //        '^/api':''
    //      }
    //   }
    // },
    // 反向代理--结束


    open: true,
    //  process.platform === "darwin",

    host: "0.0.0.0",

    port: 8082,

    https: false,

    hotOnly: true,


    before: (app) => { },

  },
};
